﻿<!DOCTYPE html>
<html>
<head>
    <title>Animate, Color and Toggle</title>
    <style>
        #change_me {
            position: absolute;
            top: 200px;
            left: 400px;
            font: 24px arial;
        }

        #move_up #move_down #color #disappear {
            padding: 5px;
        }
    </style>
    @*<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>*@
    <script src="~/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
</head>
<body>
    <button id="move_up" class="btn btn-default">Move Up</button>
    <button id="move_down" class="btn btn-default">Move Down</button>
    <button id="move_left" class="btn btn-default">Move Left</button>
    <button id="move_right" class="btn btn-default">Move Right</button>
    <button id="color" class="btn btn-default">Change Color</button>
    <button id="disappear" class="btn btn-default">Disappear/Re-appear</button>
    <div id="change_me">Make Me Do Stuff!</div>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#move_up").click(function () {
                $("#change_me").animate({ top: 200 }, 200);
            });//end move_up
            $("#move_down").click(function () {
                $("#change_me").animate({ top: 450 }, 2000);
            });//end move_down
            $("#move_left").click(function () {
                $("#change_me").animate({ left: 400 }, 500);
            });//end move_left
            $("#move_right").click(function () {
                $("#change_me").animate({ left: 700 }, 50);
            });//end move_right
            $("#color").click(function () {
                $("#change_me").css("color", "purple");
            });//end color
            $("#disappear").click(function () {
                $("#change_me").toggle("slow");
            });//end disappear   
        });//end doc ready
    </script>
</body>
</html>
